<%--
说明：资源账号信息表 增加/修改页面

@author liuxun 2012-03-18
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />

<title><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>资源账号信息</title>
<script src="jsp/rscaccount/c_rsc_acc/c_rsc_acc_edit.js" type="text/javascript" charset="UTF-8"></script>
</head>

<body>

  <form id="opeForm" name="opeForm" method="post" action="">
  <input type="hidden" id="node_id" name="model.node_id" value="${model.node_id}" />
    <%-- 操作类型 0录入 1修改 --%>
    <input type="hidden" id="operationType" name="operationType" value="${operationType}" /> 
    <input type="hidden" id="rsc_acc_id" name="model.rsc_acc_id" value="${model.rsc_acc_id}" /> 
    <input type="hidden" id="rsc_id" name="model.rsc_id" value="${model.rsc_id}" />
    <input type="hidden" id="is_manage_acc" name="model.is_manage_acc" value="${model.is_manage_acc}" />
    <input type="hidden" id="pwd_update_time" name="model.pwd_update_time" value="${model.pwd_update_time}" />
    <input type="hidden" id="is_reset" name="model.is_reset" value="${model.is_reset}" />
    <c:if test="${operationType == 1 || model.is_manage_acc ==1 }">
       	<input type="hidden" id="rsc_acc" name="model.rsc_acc" value="${model.rsc_acc}" />
    </c:if> 
	<c:if test="${operationType == 0 }">
		<input type="hidden" id="is_modify_password" name="model.is_modify_password" value="0" />
	</c:if>
    <table style="width: 100%; height: 100%" border="0" cellpadding="0" cellspacing="0" class="editDisplay">
      <tr>
        <td valign="top">
          <%--编辑页面名称标题表格--%>
          <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" class="editCaption">
            <tr>
              <td height="30">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><font class="editCaptionTitle"><c:if test="${operationType == 0 }">新增</c:if><c:if test="${ operationType == 1}">编辑</c:if>资源账号信息</font></td>
            </tr>
            <tr>
              <td height="5"></td>
            </tr>
          </table> <%--编辑部分表格--%>
          <table border="0" align="center" cellpadding="0" cellspacing="0" class="editTableBorder">
            <tr>
              <td>
                <table border="0" align="center" cellpadding="0" cellspacing="0" class="editMainTable">
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">资源名称：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    <c:if test="${operationType == 0 }">
                    	<input type="text" id="rsc_name" required="true" validType="" readonly="readonly" class="easyui-validatebox  editMainText" value="${model.rsc_name}" maxlength=150 />
                    	<img onclick="select_c_rsc();" style="cursor: hand" title="选择" src="<c:url value="/images/eclipse/select.gif" />" />
                    </c:if>
                    <c:if test="${operationType == 1 }">
                    	${model.rsc_name}
                    </c:if>                    
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">资源账号：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">

                    
                    <c:if test="${operationType == 0 }">
                    	<input type="text" id="rsc_acc" name="model.rsc_acc" required="true" validType="maxLength[50]" class="easyui-validatebox  editMainText" <c:if test="${operationType == 1 && model.is_manage_acc ==1 }">readonly="readonly"</c:if> value="${model.rsc_acc}" /> 
                    	&nbsp;<span><font color="red">*</font> </span>
                    </c:if>
                    <c:if test="${operationType == 1 || model.is_manage_acc ==1 }">
                    	${model.rsc_acc}
                    </c:if>                     
                    </td>
                  </tr>

                  <c:if test="${operationType == 0 }">
                    <tr>
                      <td class="editMainLabelTD" align="right" style="width: 40%;">口令：&nbsp;</td>
                      <td class="editMainTD" align="left" nowrap="nowrap">
                      <span id="pass">
                      <input type="password" id="password" name="model.password" required="true" validType="maxLength[20]" class="easyui-validatebox  editMainText" value="${model.password}" />
                      </span>&nbsp;
                      <span><font color="red">*</font> </span>
                      <INPUT TYPE="checkbox" id="showPass" onclick="passwordTypeChange()">显示字符(H)
                      
                      </td>
                    </tr>
                  </c:if>
                  
                  <c:if test="${operationType == 1 }">
                    <tr id="tr_password">
                      <td class="editMainLabelTD" align="right" style="width: 40%;">口令：&nbsp;</td>
                      <td class="editMainTD" align="left" nowrap="nowrap">                     
                      <span id="editPass">
                      <input type="password" id="password" name="model.password" disabled="true" validType="maxLength[20]" class="easyui-validatebox  editMainText" value="${model.password}" />
                      </span>&nbsp;
                      <span><font color="red">* 
                      		修改口令<input type="checkbox" id="is_modify_password" name="model.is_modify_password" value="1"></input></font> 
                      		显示字符(H)<INPUT TYPE="checkbox" id="showEditPass" onclick="editPasswordTypeChange()" />
                      </span>
                      </span>&nbsp;
                      </td>
                    </tr>
                  </c:if>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">账号状态：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<ext:select id="rsc_acc_status" name="model.rsc_acc_status" cachetype="P_TYPE_VALUE" nameprop="type_value_name" valueprop="type_value_code" excludevalue="03" condnames="type_code" condvalues="113" initvalue="${model.rsc_acc_status}"  style="width:150px" orderby="type_value_code" /> &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">是否允许定期更新密码：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    <select id="is_updte_pwd" name="model.is_updte_pwd" style="width: 150px">
                        <option value="1" <c:if test="${model.is_updte_pwd==1}">selected</c:if>>是</option>
                        <option value="0" <c:if test="${model.is_updte_pwd==0}">selected</c:if>>否</option>
                    </select>
                     &nbsp;<span><font color="red">*</font> </span>
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">账号类型：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
						<ext:select id="acc_type" name="model.acc_type" cachetype="P_TYPE_VALUE" nameprop="type_value_name" valueprop="type_value_code" condnames="type_code" condvalues="122" initvalue="${model.acc_type}" style="width:150px" orderby="type_value_code" />&nbsp;
                    	<span><font color="red">*</font> </span>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">账号索引：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<input type="text" id="rsc_acc_no" name="model.rsc_acc_no" validType="" class="easyui-validatebox  editMainText" value="${model.rsc_acc_no}" />
                    </td>
                  </tr>                  
                  
                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">是否探测：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap">
                    	<input type="radio" id="is_probe_0" name="model.is_probe" value="0" <c:if test="${model.is_probe==0}"> checked="checked" </c:if>>&nbsp;否</input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    	<input type="radio" id="is_probe_1" name="model.is_probe" value="1" <c:if test="${model.is_probe==1}"> checked="checked" </c:if>>&nbsp;是</input>
                    </td>
                  </tr>
                  <tr>    

                  <tr>
                    <td class="editMainLabelTD" align="right" style="width: 40%;">描述：&nbsp;</td>
                    <td class="editMainTD" align="left" nowrap="nowrap"><input type="text" id="rsc_acc_desc" name="model.rsc_acc_desc" validType="" class="easyui-validatebox  editMainText" value="${model.rsc_acc_desc}" />
                    </td>
                  </tr>

                  <tr>
                    <td class="editMainConstTD" colspan="2">&nbsp;&nbsp;说明：带<span><font color="red">*</font> </span>的项目是必须填写项</td>
                  </tr>
                  <tr>
                    <td style="height: 40px;" colspan="2" class="editMainConstLabelTD">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="editMainBottomTD">&nbsp;
                      <div style="text-align: center; padding: 5px;">
                        <a href="javascript:void(0)" id="okBtn" icon="icon-save" class="easyui-linkbutton">保存</a> <a href="javascript:void(0)" id="cancelBtn" icon="icon-cancel" class="easyui-linkbutton">取消</a>
                      </div>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>

  </form>

</body>
</html>